import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { UserinfoTableComponent } from './pages/userinfo-table/userinfo-table.component';
import { UserinfoDetailComponent } from './pages/userinfo-detail/userinfo-detail.component';
import { SettlementTableComponent } from './pages/usergroups-table/usergroups-table.component';
const routes: Routes = [
    {
        path: 'userinfo', component: UserinfoTableComponent, data: {
            breadcrumbs: [{ title: '用户信息' }]
        },
        children: [
            {
                path: 'detail', component: UserinfoDetailComponent, data: {
                    breadcrumbs: [{ title: '用户信息', path: '/userinfo/userinfo' }, { title: '新增用户' }]
                }
            },
            {
                path: 'detail/:id', component: UserinfoDetailComponent, data: {
                    breadcrumbs: [{ title: '用户信息', path: '/userinfo/userinfo' }, { title: '用户详情' }]
                }
            },
        ]
    },
    {
        path: 'usergroups', component: SettlementTableComponent, data: {
            breadcrumbs: [{ title: '用户组信息' }]
        },

    }
];

export const declarationComponents = [
    UserinfoTableComponent,
    UserinfoDetailComponent,
    SettlementTableComponent
];

export const entryComponents = [
];

@NgModule({
    imports: [
        RouterModule.forChild(routes)
    ],
    exports: [
        RouterModule
    ]
})
export class UserinfoRoutingModule { }
